package com.ruoyi.system.wnjk.service;

import com.ruoyi.system.wnjk.domain.dto.ReceiveItemDTO;
import com.ruoyi.system.wnjk.domain.po.ShopAfterSalesRequests;

import java.util.List;

/**
 * 售后详情Service接口
 *
 * @author ruoyi
 * @date 2025-03-07
 */
public interface IShopAfterSalesRequestsService
{
    /**
     * 查询售后详情
     *
     * @param id 售后详情主键
     * @return 售后详情
     */
    public ShopAfterSalesRequests selectShopAfterSalesRequestsById(Long id);

    /**
     * 查询售后详情列表
     *
     * @param shopAfterSalesRequests 售后详情
     * @return 售后详情集合
     */
    public List<ShopAfterSalesRequests> selectShopAfterSalesRequestsList(ShopAfterSalesRequests shopAfterSalesRequests);

    /**
     * 新增售后详情
     *
     * @param shopAfterSalesRequests 售后详情
     * @return 结果
     */
    public int insertShopAfterSalesRequests(ShopAfterSalesRequests shopAfterSalesRequests);

    /**
     * 修改售后详情
     *
     * @param shopAfterSalesRequests 售后详情
     * @return 结果
     */
    public int updateShopAfterSalesRequests(ShopAfterSalesRequests shopAfterSalesRequests);

    /**
     * 批量删除售后详情
     *
     * @param ids 需要删除的售后详情主键集合
     * @return 结果
     */
    public int deleteShopAfterSalesRequestsByIds(Long[] ids);

    /**
     * 删除售后详情信息
     *
     * @param id 售后详情主键
     * @return 结果
     */
    public int deleteShopAfterSalesRequestsById(Long id);

    int postAfterSaleRequest(ShopAfterSalesRequests shopAfterSalesRequests);

    boolean refuseAfterSalesRequest(Long id);

    int receiveItem(ReceiveItemDTO receiveItemDTO);
}
